package com.arpa.wms.common.util;

import cn.hutool.core.util.StrUtil;

public class SourcePlatformUtils {

    private SourcePlatformUtils() {
        throw new IllegalStateException("Utility class");
    }
   /**
     * 翻译获取订单来源平台名称
     * @param logisticsCode
     * @return
     */
    public static String translate(String logisticsCode) {
        if (StrUtil.isEmpty(logisticsCode)) {
            return "其他";
        }
        switch (logisticsCode) {
            case "TB":
                return "淘宝";
            case "TM":
                return "天猫";
            case "JD":
                return "京东";
            case "DD":
                return "当当";
            case "PP":
                return "拍拍";
            case "YX":
                return "易讯";
            case "EBAY":
                return "ebay";
            case "QQ":
                return "QQ网购";
            case "STO":
                return "申通";
            case "AMAZON":
                return "亚马逊";
            case "SN":
                return "苏宁";
            case "GM":
                return "国美";
            case "WPH":
                return "唯品会";
            case "JM":
                return "聚美";
            case "LF":
                return "乐蜂";
            case "MGJ":
                return "蘑菇街";
            case "JS":
                return "聚尚";
            case "PX":
                return "拍鞋";
            case "YT":
                return "银泰";
            case "YHD":
                return "1号店";
            case "VANCL":
                return "凡客";
            case "YL":
                return "邮乐";
            case "YG":
                return "优购";
            case "1688":
                return "阿里巴巴";
            case "POS":
                return "POS门店";
            case "MIA":
                return "蜜芽";
            case "PIN_DUO_DUO":
                return "拼多多";
            case "PDD":
                return "拼多多";
            case "DY":
                return "抖音";
            case "DYXD":
                return "抖音";
            case "CAINIAO":
                return "菜鸟";
            case "KS":
                return "快手";
            case "OTHER":
                return "其他";
            default:
                return "其他";
        }
    }
}
